package demo1;

/**
 * 方法工厂模式.
 *
 * @author GongXincheng
 * @since 2019-09-18 10:37
 */
public class Main {

    public static void main(String[] args) {

        BaseFactory factory = new PlaneFactory();

        Movable movable = factory.create();
        movable.run();

    }

}
